<?php
if (!empty($_REQUEST)) {
	file_put_contents("log", $_SERVER['SCRIPT_NAME'] . " : " . print_r($_REQUEST, true), FILE_APPEND);
}
if (strpos($_SERVER['SCRIPT_NAME'], "status") !== FALSE) {
	// To mark result as unknown
	print "unknown";
	// To mark result as available
	// print "available";
	// To mark result as onrent
	// print "rented";
}
elseif (strpos($_SERVER['SCRIPT_NAME'], "register") !== FALSE) {
	print "success";
}
elseif (strpos($_SERVER['SCRIPT_NAME'], "register") !== FALSE) {
	print "success";
}
elseif (strpos($_SERVER['SCRIPT_NAME'], "itemname") !== FALSE) {
	print $_REQUEST['id'] . uniqid();
}